{extend name='admin@main'}

{block name="content"}
<div class="think-box-shadow">
    {include file='cities_member_custom/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>用户信息</th>
            <th class='text-left nowrap'>申请地址</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>注册时间</th>
            <th></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-left nowrap'>
                {notempty name='vo.member.headimg'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.member.headimg|default=''}" class="margin-right-5">
                {/notempty}
                <div class="inline-block">
                    会员昵称：{$vo.member.nickname|default='--'}<br>
                    会员手机：{$vo.member.phone|default='--'}<br>
                </div>
            </td>
            <td class='text-left nowrap'>{$vo.address|default='--'}</td>
            <td class='text-left'>
                {if $vo.status eq 1}<strong class="color-green">已处理</strong>{elseif $vo.status eq 0}<strong class="color-red">待处理</strong>{/if}<br>
            </td>
            <td class='text-left'>{$vo.create_at}</td>
            <td class="text-left">

                {if $vo.status eq 0 and auth("currency/cleaner/edit")}
                <a data-dbclick data-title="绑定地址" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}' data-value="id#{$vo.id};status#0">绑 定</a>
                {/if}
                {if auth("currency/cities_member_custom/remove")}
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除吗？" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('currency/cities_member_custom/remove')}">删 除</a>
                {/if}

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}